<%@ Register TagPrefix="cc2" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.PersonnelSummary" CodeFile="PersonnelSummary.aspx.cs" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Personnel Summary</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="PersonnelSummaryForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc2:Header ID="insightHeader" runat="server" OnNavigate="OnHeaderNavigate"></cc2:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:PersonnelSubNavigation ID="personnelSubNavigation" runat="server" OnNavigate="OnSubNavigate">
                                </cc2:PersonnelSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnBreadCrumbNavigate" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" cellpadding="10" cellspacing="10" style="background-color:#ffffff">
                        <tr>
                            <td>
                                <cc1:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:CommonSearch ID="commonSearch" runat="server" Module="Personnel" ExtendedSearchControl="personnelSearch"
                                                        OnSearch="OnSearch" COSPickerVisible="False" Field1Prompt="Employee Last Name:"
                                                        Field1ID="employeeLastName" Field2Prompt="Employee First Name:" Field2ID="employeeFirstName"
                                                        ViewOptionVisible="false" AddSinglePIToSearchCriteria="false" OnClearSelection="OnClearSelection" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc1:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:PersonnelSearch ID="personnelSearch" runat="server" ViewByFiscalYearVisible="False" />
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc1:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                                <input type="hidden" id="hiddenSearchCriteria" runat="server" /></td>
                        </tr>
                    </table>
                    <table class="Invisible" id="dynamicTable" cellspacing="10">
                        <tr>
                            <td>
                                <cc1:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
                                </cc1:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc1:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                Personnel Summary</td>
                            <td align="center">
                                <cc2:RefreshDates ID="refreshDates" runat="server" Visible="True" SalaryAsOfDateVisible="True" />
                            </td>
                            <td align="right">
                                <cc2:InsightDownloadBar ID="reportDownload" runat="server" OnFailedAction="OnDownloadFailed" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td colspan="3">
                                <cc1:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:DataGrid ID="personnelSummaryGrid" runat="server" CssClass="DataGrid" AllowSorting="True"
                                    AllowCustomPaging="True" AllowPaging="True" AutoGenerateColumns="False" Width="100%"
                                    OnItemCommand="OnDataGridItemCommand" OnItemCreated="OnItemCreated" OnItemDataBound="OnItemDataBound"
                                    OnSortCommand="OnSort">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                    <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                    <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                    <Columns>
                                        <asp:BoundColumn Visible="False" DataField="EmployeeJobMapId" SortExpression="EmployeeJobMapId"
                                            ReadOnly="True" HeaderText="JobMapID"></asp:BoundColumn>
                                        <asp:ButtonColumn DataTextField="EmployeeNumber" SortExpression="EmployeeId" HeaderText="Employee Id"
                                            CommandName="SelectEmployeeID"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="RecordNumber" SortExpression="RecordNumber" ReadOnly="True"
                                            HeaderText="Record #"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="Status" SortExpression="Status" ReadOnly="True" HeaderText="Status">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="Division" SortExpression="Division" ReadOnly="True" HeaderText="Division">
                                        </asp:BoundColumn>
                                        <asp:ButtonColumn CommandName="SelectEmployeeName" DataTextField="Name" HeaderText="Name"
                                            SortExpression="Name"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="PayFrequencyType" SortExpression="PayFrequencyType" ReadOnly="True"
                                            HeaderText="Pay Frequency Type"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="JobCode" SortExpression="JobCode" ReadOnly="True" HeaderText="Job Code">
                                        </asp:BoundColumn>
                                        <asp:ButtonColumn DataTextField="AnnualRate" SortExpression="AnnualRate" HeaderText="Annual Rate"
                                            CommandName="SelectSalary" DataTextFormatString="{0:c}">
                                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                        </asp:ButtonColumn>
                                        <asp:BoundColumn DataField="EffectiveDate" SortExpression="EffectiveDate" ReadOnly="True"
                                            HeaderText="Eff. Date"></asp:BoundColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <cc1:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
